package cc.verywell.pureblock.func.node;

import java.util.Arrays;
import java.util.Objects;

/**
* 
* Copyright © 2019 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2019年4月20日 上午9:22:26
*/
public class KeyShell {
	final private int hash;
	public byte[] key;
	public KeyShell(byte[] key) {
		this.key = key;
		this.hash = Arrays.hashCode(key);
	}
	@Override
	final public int hashCode() {
		return hash;
	}
	@Override
	final public boolean equals(Object obj) {
		KeyShell n = (KeyShell)obj;
		return n.hash==hash && Arrays.equals(n.key, key);
	}
}
